package com.gl.rent;


import com.haixiaoke.saas.repository.core.BaseController;
import com.haixiaoke.saas.repository.core.page.TableDataInfo;
import com.haixiaoke.saas.repository.pojo.House;
import com.haixiaoke.saas.repository.service.IHouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 公寓管理 Controller
 *
 * @author zhiping
 */
@RestController
@RequestMapping("/apartment")
public class ApartmentController extends BaseController {


    @Autowired
    private IHouseService houseService;

    /**
     * 用于公寓推荐的筛选
     */
    @GetMapping("/filter")
    public TableDataInfo filter(House house) {
        startPage();
        return getDataTable(houseService.apartmentFilter(house));
    }


}
